<?php
/**
 * Created by PhpStorm.
 * User: My
 * Date: 2018/11/19
 * Time: 11:42
 */

namespace App\Models;

use Illuminate\Database\Eloquent\Builder;

class TestingSyncOrder extends BaseModel
{
    protected $table = 'testing_sync_order';

    protected $fillable = ['id', 'uid', 'phone', 'order_id', 'nutritionist_id', 'status', 'add_time', 'update_time'];

    protected function performInsert(Builder $query)
    {
        $this->add_time = time();
        $this->update_time = time();
        $query->setModel($this);

        return parent::performInsert($query); // TODO: Change the autogenerated stub
    }

    public $timestamps = false;
}